/**
 * Import packages
 */
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JMenuItem;

/**
 *
 * @authors BENSON WACHIRA, DOROTHY SARPONG, STANLEY ANKU
 * MICHAEL ESHUN & MAKAFUI AMEZAH
 */

/**
 * 
 * This is the homepage for the Jet-Wing program
 */

public class HomePage extends javax.swing.JFrame {

    /**
     * Creates new form HomePage
     */
    public HomePage() {
         getContentPane().setBackground(Color.BLACK);
        initComponents();
    }
    
    /**
     * 
     * @return AddE, DeleteE, ModifyE, list_button, showE, AddF, ModifyE, DeleteF,
     * ShowF, AddR, ShowR & Export
     */
    public JButton getAddEmp(){
        return AddE;
    }
    public JButton getModifyEmp(){
        return ModifyE;
    }
    public JButton getDeleteEmp(){
        return DeleteE;
    }
    public JButton getListOrders(){
        return list_button;
    }
    public JButton getShowEmp(){
        return ShowE;
    }
    public JButton getAddFlight(){
        return AddF;
    }
    public JButton getModifyFlight(){
        return ModifyF;
    }
    public JButton getDeleteFlight(){
        return DeleteF;
    }
    public JButton getShowFlight(){
        return ShowF;
    }
    public JButton getAddReservation(){
        return AddR;
    }
    public JButton getModifyReservation(){
        return ModifyR;
    }
    public JButton getDeleteReservation(){
        return DeleteR;
    }
    public JButton getShowReservation(){
        return ShowR;
    }
    public JButton getExport(){
        return export;
    }
    public JButton getSearchButton(){
        return searchBtn;
    }
    
    /**
     * 
     * @return AddEmp, ModifyEm, DeleteEm, ShowEm, AddF1, ModifyF1, DeleteF1, ShowF1,
     * AddRe, ModifyRe, DeleteRe, ShowRe
     */
    public JMenuItem getAddEmMenu(){
    return AddEmp;
    }
    public JMenuItem getModifyEmMenu(){
    return ModifyEm;
    }
    public JMenuItem getDeleteEmMenu(){
    return DeleteEm;
    }
    public JMenuItem getShowEmMenu(){
    return ShowEm;
    }
    public JMenuItem getAddFlMenu(){
    return AddFl;
    }
    public JMenuItem getModifyFlMenu(){
    return ModifyFl;
    }
    public JMenuItem getDeleteFlMenu(){
    return DeleteFl;
    }
    public JMenuItem getShowFlMenu(){
    return ShowFl;
    }
    public JMenuItem getAddReMenu(){
    return AddRe;
    }
    public JMenuItem getModifyReMenu(){
    return ModifyRe;
    }
    public JMenuItem getDeleteReMenu(){
    return DeleteRe;
    }
    public JMenuItem getShowReMenu(){
    return ShowRe;
    }
    
    


    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem8 = new javax.swing.JMenuItem();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        AddE = new javax.swing.JButton();
        AddF = new javax.swing.JButton();
        AddR = new javax.swing.JButton();
        ModifyE = new javax.swing.JButton();
        DeleteR = new javax.swing.JButton();
        DeleteF = new javax.swing.JButton();
        DeleteE = new javax.swing.JButton();
        ShowE = new javax.swing.JButton();
        ModifyF = new javax.swing.JButton();
        ModifyR = new javax.swing.JButton();
        ShowR = new javax.swing.JButton();
        ShowF = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        export = new javax.swing.JButton();
        list_button = new javax.swing.JButton();
        searchBtn = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        AddEm = new javax.swing.JMenu();
        AddEmp = new javax.swing.JMenuItem();
        ModifyEm = new javax.swing.JMenuItem();
        DeleteEm = new javax.swing.JMenuItem();
        ShowEm = new javax.swing.JMenuItem();
        DeleteFm = new javax.swing.JMenu();
        AddFl = new javax.swing.JMenuItem();
        ModifyFl = new javax.swing.JMenuItem();
        DeleteFl = new javax.swing.JMenuItem();
        ShowFl = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        AddRe = new javax.swing.JMenuItem();
        ModifyRe = new javax.swing.JMenuItem();
        DeleteRe = new javax.swing.JMenuItem();
        ShowRe = new javax.swing.JMenuItem();

        jMenuItem8.setText("jMenuItem8");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Employees");

        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Flights");

        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Reservations");

        AddE.setBackground(new java.awt.Color(0, 102, 204));
        AddE.setText("Add");

        AddF.setBackground(new java.awt.Color(0, 102, 204));
        AddF.setText("Add");
        AddF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AddFActionPerformed(evt);
            }
        });

        AddR.setBackground(new java.awt.Color(0, 102, 204));
        AddR.setText("Add");

        ModifyE.setBackground(new java.awt.Color(0, 102, 204));
        ModifyE.setText("Modify");

        DeleteR.setBackground(new java.awt.Color(0, 102, 204));
        DeleteR.setText("Delete");

        DeleteF.setBackground(new java.awt.Color(0, 102, 204));
        DeleteF.setText("Delete");

        DeleteE.setBackground(new java.awt.Color(0, 102, 204));
        DeleteE.setText("Delete");

        ShowE.setBackground(new java.awt.Color(0, 102, 204));
        ShowE.setText("Show");

        ModifyF.setBackground(new java.awt.Color(0, 102, 204));
        ModifyF.setText("Modify");

        ModifyR.setBackground(new java.awt.Color(0, 102, 204));
        ModifyR.setText("Modify");

        ShowR.setBackground(new java.awt.Color(0, 102, 204));
        ShowR.setText("Show");

        ShowF.setBackground(new java.awt.Color(0, 102, 204));
        ShowF.setText("Show");

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jet/wings/plane2.jpg"))); // NOI18N
        jLabel4.setText("jLabel4");

        export.setBackground(new java.awt.Color(0, 153, 51));
        export.setText("Export");

        list_button.setBackground(new java.awt.Color(204, 0, 0));
        list_button.setText("List Orders");

        searchBtn.setBackground(new java.awt.Color(204, 204, 0));
        searchBtn.setText("Search");

        AddEm.setText("Employees");

        AddEmp.setText("Add Employee");
        AddEm.add(AddEmp);

        ModifyEm.setText("Modify Employee");
        ModifyEm.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ModifyEmActionPerformed(evt);
            }
        });
        AddEm.add(ModifyEm);

        DeleteEm.setText("Delete EMployee");
        AddEm.add(DeleteEm);

        ShowEm.setText("Show Employees");
        ShowEm.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ShowEmActionPerformed(evt);
            }
        });
        AddEm.add(ShowEm);

        jMenuBar1.add(AddEm);

        DeleteFm.setText("Flights");

        AddFl.setText("Add Flight");
        DeleteFm.add(AddFl);

        ModifyFl.setText("Modify Flight");
        DeleteFm.add(ModifyFl);

        DeleteFl.setText("Delete Flight");
        DeleteFm.add(DeleteFl);

        ShowFl.setText("Show Flights");
        DeleteFm.add(ShowFl);

        jMenuBar1.add(DeleteFm);

        jMenu3.setText("Reservations");

        AddRe.setText("Add Reservation");
        jMenu3.add(AddRe);

        ModifyRe.setText("Modify Reservation");
        jMenu3.add(ModifyRe);

        DeleteRe.setText("Delete Reservation");
        jMenu3.add(DeleteRe);

        ShowRe.setText("Show Reservations");
        jMenu3.add(ShowRe);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(271, 271, 271))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(ShowE, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(AddE, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(ModifyE, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(DeleteE, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(180, 180, 180)
                                .addComponent(export, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(searchBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(AddF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(ModifyF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(DeleteF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(ShowF, javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(248, 248, 248)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel3)
                                    .addComponent(AddR, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(ModifyR, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(DeleteR, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(ShowR, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(66, 66, 66)
                                .addComponent(list_button, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3))
                        .addGap(29, 29, 29)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(AddE)
                            .addComponent(AddR))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ModifyE)
                            .addComponent(ModifyR))
                        .addGap(26, 26, 26)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(DeleteE)
                            .addComponent(DeleteR))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ShowE)
                            .addComponent(ShowR)))
                    .addComponent(jLabel2)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(45, 45, 45)
                        .addComponent(AddF)
                        .addGap(18, 18, 18)
                        .addComponent(ModifyF)
                        .addGap(26, 26, 26)
                        .addComponent(DeleteF)
                        .addGap(18, 18, 18)
                        .addComponent(ShowF)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(export)
                    .addComponent(list_button)
                    .addComponent(searchBtn)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void ShowEmActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowEmActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ShowEmActionPerformed

    private void AddFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AddFActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_AddFActionPerformed

    private void ModifyEmActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ModifyEmActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ModifyEmActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new HomePage().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton AddE;
    private javax.swing.JMenu AddEm;
    private javax.swing.JMenuItem AddEmp;
    private javax.swing.JButton AddF;
    private javax.swing.JMenuItem AddFl;
    private javax.swing.JButton AddR;
    private javax.swing.JMenuItem AddRe;
    private javax.swing.JButton DeleteE;
    private javax.swing.JMenuItem DeleteEm;
    private javax.swing.JButton DeleteF;
    private javax.swing.JMenuItem DeleteFl;
    private javax.swing.JMenu DeleteFm;
    private javax.swing.JButton DeleteR;
    private javax.swing.JMenuItem DeleteRe;
    private javax.swing.JButton ModifyE;
    private javax.swing.JMenuItem ModifyEm;
    private javax.swing.JButton ModifyF;
    private javax.swing.JMenuItem ModifyFl;
    private javax.swing.JButton ModifyR;
    private javax.swing.JMenuItem ModifyRe;
    private javax.swing.JButton ShowE;
    private javax.swing.JMenuItem ShowEm;
    private javax.swing.JButton ShowF;
    private javax.swing.JMenuItem ShowFl;
    private javax.swing.JButton ShowR;
    private javax.swing.JMenuItem ShowRe;
    private javax.swing.JButton export;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JButton list_button;
    private javax.swing.JButton searchBtn;
    // End of variables declaration//GEN-END:variables
}
